package okw.database;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class OKWMember extends core.modules.database.SuperOKWMember implements
		Serializable {

	private static final long serialVersionUID = 4531692253798110951L;

	private Set<AdministratorToken> administratorTokens = new HashSet<AdministratorToken>();

	public OKWMember() {
		super();
	}

	public OKWMember(String name, String surname, String address,
			String identificationField) {
		super(name, surname, address, identificationField);
	}

	public Set<AdministratorToken> getAdministratorTokens() {
		return administratorTokens;
	}

	public void setAdministratorTokens(
			Set<AdministratorToken> administratorTokens) {
		this.administratorTokens = administratorTokens;
	}
	
	public void addToAdministratorToken(AdministratorToken administratorToken){
		this.getAdministratorTokens().add(administratorToken);
		administratorToken.setOkwmember(this);
	}
}
